package com.ce.entity;

import java.io.Serializable;

public class Customer implements Serializable {
	private static final long serialVersionUID = -667657231202073823L;

	private int autoId;
	
	private int locked;
	
	private int userFlag;
	
	private String photoName = "";
	
	private String photoPath = "";
	
	private String phoneNumber = "";
	
	private String userName = "";
	
	private String password = "";
	
	private String trueName = "";
	
	private String userSex = "";
	
	private String userMail = "";
	
	private String userAddress = "";
	
	private String userCode = "";
	
	private String addtime = "";
	
	private boolean isChange;
	
	public boolean isChange() {
		return isChange;
	}

	public void setChange(boolean isChange) {
		this.isChange = isChange;
	}

	public int getAutoId() {
		return autoId;
	}

	public void setAutoId(int autoId) {
		this.autoId = autoId;
	}

	public String getUserName() {
		return userName == null ? "" : userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	public String getPassword() {
		return password == null ? "" : password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public String getTrueName() {
		return trueName == null ? "" : trueName;
	}

	public void setTrueName(String trueName) {
		this.trueName = trueName;
	}

	public String getUserSex() {
		return userSex == null ? "" : userSex;
	}

	public void setUserSex(String userSex) {
		this.userSex = userSex;
	}

	public String getUserMail() {
		return userMail == null ? "" : userMail;
	}

	public void setUserMail(String userMail) {
		this.userMail = userMail;
	}

	public String getUserAddress() {
		return userAddress == null ? "" : userAddress;
	}

	public void setUserAddress(String userAddress) {
		this.userAddress = userAddress;
	}

	public String getUserCode() {
		return userCode == null ? "" : userCode;
	}

	public void setUserCode(String userCode) {
		this.userCode = userCode;
	}

	public String getAddtime() {
		return addtime == null ? "" : addtime;
	}

	public void setAddtime(String addtime) {
		this.addtime = addtime;
	}
	
	public int getLocked() {
		return locked;
	}

	public void setLocked(int locked) {
		this.locked = locked;
	}

	public int getUserFlag() {
		return userFlag;
	}

	public void setUserFlag(int userFlag) {
		this.userFlag = userFlag;
	}

	public String getPhotoName() {
		return photoName == null ? "" : photoName;
	}

	public void setPhotoName(String photoName) {
		this.photoName = photoName;
	}

	public String getPhotoPath() {
		return photoPath == null ? "" : photoPath;
	}

	public void setPhotoPath(String photoPath) {
		this.photoPath = photoPath;
	}

	public String getPhoneNumber() {
		return phoneNumber == null ? "" : phoneNumber;
	}

	public void setPhoneNumber(String phoneNumber) {
		this.phoneNumber = phoneNumber;
	}

	public String modifyJson() {
		StringBuffer sb = new StringBuffer();
		sb.append("{")
		  .append("\"autoId\":\"").append(autoId).append("\"").append(",")
		  .append("\"locked\":").append(locked).append(",")
		  .append("\"userFlag\":").append(userFlag).append(",")
		  .append("\"photoName\":\"").append(photoName).append("\"").append(",")
		  .append("\"photoPath\":\"").append(photoPath).append("\"").append(",")
		  .append("\"phoneNumber\":\"").append(phoneNumber).append("\"").append(",")
		  .append("\"userName\":\"").append(userName).append("\"").append(",")
		  .append("\"password\":\"").append(password).append("\"").append(",")
		  .append("\"trueName\":\"").append(trueName).append("\"").append(",")
		  .append("\"userSex\":\"").append(userSex).append("\"").append(",")
		  .append("\"userMail\":\"").append(userMail).append("\"").append(",")
		  .append("\"userAddress\":\"").append(userMail).append("\"").append(",")
		  .append("\"userCode\":\"").append(userMail).append("\"").append(",")
		  .append("\"addtime\":\"").append(userMail).append("\"")
		  .append("}");
		return sb.toString();
	}

	public String registerJson() {
		StringBuffer sb = new StringBuffer();
		sb.append("{")
		  .append("\"userName\":\"").append(userName).append("\"").append(",")
		  .append("\"password\":\"").append(password).append("\"").append(",")
		  .append("\"locked\":").append(locked).append(",")
		  .append("\"userFlag\":").append(userFlag).append(",")
		  .append("\"photoName\":\"").append(photoName).append("\"").append(",")
		  .append("\"photoPath\":\"").append(photoPath).append("\"").append(",")
		  .append("\"phoneNumber\":\"").append(phoneNumber).append("\"").append(",")
		  .append("\"trueName\":\"").append(trueName).append("\"").append(",")
		  .append("\"userSex\":\"").append(userSex).append("\"").append(",")
		  .append("\"userMail\":\"").append(userMail).append("\"").append(",")
		  .append("\"userAddress\":\"").append(userMail).append("\"").append(",")
		  .append("\"userCode\":\"").append(userMail).append("\"").append(",")
		  .append("\"addtime\":\"").append(userMail).append("\"")
		  .append("}");
		return sb.toString();
	}
}
